Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add few warning compiler options to error #1181

Merged
merged 5 commits into from
Nov 27, 2023

Conversation

saikishor
Copy link
Member

Inspiring from the PRs that @destogl made recently: #1173 & #1174. I think it is in the best interest of everyone to add some compiler flags to errors to better code quality. I have done it for the most important packages and fixed some errors at the same time

Copy link

codecov bot commented Nov 25, 2023

Codecov Report

Merging #1181 (c5c9ec2) into master (7d79464) will decrease coverage by 0.01%.
The diff coverage is 44.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1181      +/-   ##
==========================================
- Coverage   47.63%   47.63%   -0.01%     
==========================================
  Files          40       40              
  Lines        3445     3441       -4     
  Branches     1866     1864       -2     
==========================================
- Hits         1641     1639       -2     
  Misses        480      480              
+ Partials     1324     1322       -2     
Flag Coverage Δ
unittests 47.63% <44.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...e_interface/src/mock_components/generic_system.cpp 55.10% <100.00%> (ø)
controller_manager/src/controller_manager.cpp 38.67% <33.33%> (-0.04%) ⬇️

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you sir!

@bmagyar bmagyar merged commit 65353ff into ros-controls:master Nov 27, 2023
13 checks passed
@saikishor saikishor deleted the add_few_warning_flags_to_error branch August 17, 2024 08:26
@christophfroehlich
Copy link
Contributor

@Mergifyio backport humble iron

Copy link
Contributor

mergify bot commented Oct 26, 2024

backport humble iron

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 26, 2024
* add conversion, unused-but-set-variable, and return-type warnings to error
* add shadow variables to error and their fixes for code compilation
* apply the same flags to controller interface package
* apply the same flags and their fixes to hardware_interface package
* apply the same compiler options to the rest of the packages

(cherry picked from commit 65353ff)

# Conflicts:
#	controller_manager/src/controller_manager.cpp
#	hardware_interface_testing/test/test_resource_manager.cpp
mergify bot pushed a commit that referenced this pull request Oct 26, 2024
* add conversion, unused-but-set-variable, and return-type warnings to error
* add shadow variables to error and their fixes for code compilation
* apply the same flags to controller interface package
* apply the same flags and their fixes to hardware_interface package
* apply the same compiler options to the rest of the packages

(cherry picked from commit 65353ff)

# Conflicts:
#	controller_interface/CMakeLists.txt
#	controller_manager/CMakeLists.txt
#	controller_manager/src/controller_manager.cpp
#	hardware_interface/CMakeLists.txt
#	hardware_interface_testing/test/test_resource_manager.cpp
#	joint_limits/CMakeLists.txt
#	transmission_interface/CMakeLists.txt
christophfroehlich pushed a commit that referenced this pull request Oct 26, 2024
* add conversion, unused-but-set-variable, and return-type warnings to error
* add shadow variables to error and their fixes for code compilation
* apply the same flags to controller interface package
* apply the same flags and their fixes to hardware_interface package
* apply the same compiler options to the rest of the packages
christophfroehlich pushed a commit that referenced this pull request Oct 26, 2024
* add conversion, unused-but-set-variable, and return-type warnings to error
* add shadow variables to error and their fixes for code compilation
* apply the same flags to controller interface package
* apply the same flags and their fixes to hardware_interface package
* apply the same compiler options to the rest of the packages
christophfroehlich added a commit that referenced this pull request Oct 27, 2024
* Add few warning compiler options to error (#1181)

* add conversion, unused-but-set-variable, and return-type warnings to error
* add shadow variables to error and their fixes for code compilation
* apply the same flags to controller interface package
* apply the same flags and their fixes to hardware_interface package
* apply the same compiler options to the rest of the packages

* Deactivate compiler warning for class_loader

---------

Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Christoph Froehlich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants